<{if $future}>
  <div id="future_link"><{$smarty.const._MD_FUTURE_LINK}></div>
<{/if}>

<{if $screen_shot}>
<table border="0" ><tr>
  <td width="150">
    <{if $link.url}>
      <a href="<{my_make_uri option=$uri_options mydirname=$mydirname controller=visit p_key1=lid p_val1=$link.lid}>" <{if ! $link.adult}>target="_blank"<{/if}> title="<{$smarty.const._MD_SITE_VISIT}>">
        <{if $link.adult}>
          <img src="<{$myurl}>/images/warning128.gif" alt="<{$link.title}>" />
        <{else}>
          <{if $link.capture}>
            <img src="<{$cache_url}>/<{$link.lid}>.jpg" width="128" height="128" />
          <{else}>
            <{if $screenshotservice}>
              <img src="<{$screenshotservice}><{$link.url}>" width="128" height="128" />
            <{else}>
              <img src="<{$myurl}>/images/cancel128.gif" width="128" height="128" />
            <{/if}>
          <{/if}>
        <{/if}>
      </a>

    <{elseif $link.murl}>
      <{if $link.adult}>
        <img src="<{$myurl}>/images/warning128.gif" alt="<{$link.title}>" />
      <{else}>
        <img src="<{$myurl}>/images/mobileonly128.gif" alt="<{$link.title}>" />
      <{/if}>
    <{/if}>
  </td>
  <td >
<{/if}>

<table class="outer" width="100%" cellspacing="0" style="width:100%;">
  <tr>
    <td class="head">
      <div style="float:left;">
        <{if $link.url}>
          <a href="<{my_make_uri option=$uri_options mydirname=$mydirname controller=visit p_key1=lid p_val1=$link.lid}>" <{if ! $link.adult}>target="_blank"<{/if}> title="<{$smarty.const._MD_SITE_VISIT}>" style="font-size:120%;"><{$link.title}></a>
        <{else}>
          <{$link.title}>
        <{/if}>
        <{if $link.new == 1}>
          &nbsp;<img src="<{$myurl}>/images/new.gif" alt="<{$smarty.const._MD_NEWTHISWEEK}>" />
        <{/if}>
        <{if $link.new == 2}>
          &nbsp;<img src="<{$myurl}>/images/update.gif" alt="<{$smarty.const._MD_UPTHISWEEK}>" />
        <{/if}>
        <{if $link.pop}>
          &nbsp;<img src="<{$myurl}>/images/pop.gif" alt="<{$smarty.const._MD_POPULAR}>" />
        <{/if}>
      </div>
      <div style="text-align:right;font-weight:normal;width:240px;float:right;">
        <{$smarty.const._MD_LASTUPDATEC}> : <{$link.date|formatTimestamp:"m"}>
      </div>
    </td>
  </tr>
  <tr>
    <td class="even" >
      <b><{$smarty.const._MD_CATEGORY}> : </b>
      <{foreach item=cid from=$link.cid name=i}>
        <a href="<{my_make_uri option=$uri_options mydirname=$mydirname controller=category p_key1=cid p_val1=$cid}>"><{$allcid[$cid]}></a>
        <{if !$smarty.foreach.i.last}>, <{/if}>
      <{/foreach}>
    </td>
  </tr>
  <{if $link.description || $link.murl}>
  <tr>
    <td class="odd">
      <{if $link.murl }>
        <div style="text-align:right;float:right;padding:4px 4px 6px 12px;">
          <a href="<{my_make_uri option=$uri_options mydirname=$mydirname controller=visit method=mobile p_key1=lid p_val1=$link.lid}>">
            <img src="http://chart.apis.google.com/chart?chs=90x90&cht=qr&chl=<{$link.murl_qr|rawurlencode}>" style="vertical-align:middle;" />
          </a>
        </div>
      <{/if}>
      <div style="text-align: justify"><b><{$smarty.const._MD_DESCRIPTIONC}> : </b><{$link.description}></div>
    </td>
  </tr>
  <{/if}>

  <tr>
    <td class="even" style="text-align:right;">
      <{$smarty.const._MD_ACCS}> <{$link.access}> | 
      <{$smarty.const._MD_HITS}> <{$link.hits}> | 
      <{if $rating_type == 1}>
        <{$smarty.const._MD_RATING}><{$link.rating|number_format:2}> (<{$link.votes}>) | 
      <{elseif $rating_type == 2}>
        <{$smarty.const._MD_RATING_TYPE_2_LANG}> <{$link.votes_num}> | 
      <{/if}>
      <{$smarty.const._MD_SUBMITTER}> 
        <{if $link.submitter gt 0 }>
          <a href="<{my_make_uri option=$uri_options mydirname=$mydirname method=user p_key1=uid p_val1=$link.submitter}>"><{$link.submitterName}></a>
          <a href="<{$xoops_url}>/userinfo.php?uid=<{$link.submitter}>"><img src="<{$myurl}>/images/information.png" style="vertical-align:text-top" /></a>
        <{else}>
          <{$link.submitterName}>
        <{/if}>
      <{if $link.adminlink}>
        | <a href="<{my_make_uri option=$uri_options mydirname=$mydirname controller=edit p_key1=lid p_val1=$link.lid}>"><img src="<{$myurl}>/images/page_edit.gif" style="vertical-align:text-top" /><{$smarty.const._MD_MODIFY}></a>
      <{/if}>
      <{if $isadmin && $screen_shot && $screenshot_cache_time > 0 && !$link.capture}>
        &nbsp;<span style="color:red;">[No Cache Capture]</span>
      <{/if}>
    </td>
  </tr>

  <tr>
    <td class="foot" style="font-weight:normal;text-align:right;">
      <a href="<{my_make_uri option=$uri_options mydirname=$mydirname controller=broken p_key1=lid p_val1=$link.lid}>" onClick="openLinksForm('broken',<{$link.lid}>,'');return false;"><{$smarty.const._MD_REPORTBROKEN}></a> | 
      <{if $request_perm}>
        <a href="<{my_make_uri option=$uri_options mydirname=$mydirname controller=request p_key1=lid p_val1=$link.lid}>" onClick="openLinksForm('request',<{$link.lid}>,'');return false;"><{$smarty.const._MD_REQUESTMOD}></a> | 
      <{/if}>
      <a href="<{my_make_uri option=$uri_options mydirname=$mydirname controller=rating p_key1=lid p_val1=$link.lid}>" onClick="openLinksForm('rating',<{$link.lid}>,<{$rating_type}>);return false;"><{$smarty.const._MD_RATETHISSITE}></a> | 
      <a target="_top" href="mailto:?subject=<{$link.mail_subject}>&amp;body=<{$link.mail_body}>"><{$smarty.const._MD_TELLAFRIEND}></a>
      | <a href="<{my_make_uri option=$uri_options mydirname=$mydirname method=item p_key1=lid p_val1=$link.lid}>">
          <{* <!-- d3forum comment integration --> *}>
          <{if $comment_dirname && $comment_forum_id}>
            <{$smarty.const._MD_COMMENT_INTEGRATION}>(<{include file="db:`$mydirname`_inc_comment.html" count_mode=1}>)
          <{else}>
            <{$smarty.const._MD_DETAIL_LINK}>
          <{/if}>
        </a>
      <div id="linksForm<{$link.lid}>" style="display:none;" class="links_form"></div>

    </td>
  </tr>
</table>

<{if $screen_shot}>
  </td>
</tr></table>
<{/if}>

<br style="clear:both;" />